﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_DAO;
using Class_DTO;
using System.Data;

namespace Class_BUS
{
    public class NhanVienBUS
    {
        public static DataTable LoadDS_NhanVien()
        {
            NhanVienDAO NVdao = new NhanVienDAO();
            DataTable dt = new DataTable();
            dt = NVdao.getDanhSachNV();
            return dt;
        }


        public static DataTable getDanhSachNV_theoten(string pTEN)
        {
            NhanVienDAO NVdao = new NhanVienDAO();
            DataTable dt = new DataTable();
            dt = NVdao.getDanhSachNV_theoten(pTEN);
            return dt;
        }


        public static bool ThemNhanVien_BUS(NhanVienDTO dto)
        {
            NhanVienDAO NVdao = new NhanVienDAO();

            NVdao.ThemNhanVien_DAO(dto);
            return true;

        }
        
    }
}
